package com.boot.unity.api.constants;

import com.google.common.collect.Sets;

import java.util.Arrays;
import java.util.List;
import java.util.Set;

public interface Constants {

    String DEV_EVN = "dev";
    String LOCAL_EVN = "local";
    String PROD_EVN = "prod";

    /** 需要经过sign验证的URI*/
    String API_URI_PREFIX = "/api/**";
    /** 排除验证的URI*/
    List<String> EXCLUDE_PATH = Arrays.asList("/api/students/list");
    List<String> EXCLUDE_PATH_subject = Arrays.asList("/api/subjectStu");

    String VERSION_KEY = "v";
    String TIMESTAMP_KEY = "ts";
    String SIGN_KEY = "sign";
    String USER_KEY = "user";
    Set<String> PARAM_KEYS = Sets.newHashSet(VERSION_KEY,TIMESTAMP_KEY,SIGN_KEY,USER_KEY);

    String APPID_KEY = "appId:";
}
